package backs.bean;


import backs.dataBase.DBNormal;

public class User
{
	public String name;
	public int id;
	public int vip,money,state,privateGroup;
	public User(int id,String name)
	{
		this.id=id;
		this.name=name;
	}
	
	public boolean changeUserName(String name)
	{
		if(DBNormal.setValue("user",id,"name",name,true))
		{
			this.name=name;
			return true;
		}
		else return false;
	}
}
